var postsData = require('../../n_data/n_data.js');

Page({
  data:{
   x:''
        
  },
  onLoad: function (event) {
    //console.log(event);
    var x = event.xz;
    this.setData({
      x:x
    })

},
  onTap1: function () {
    var y =this.data.x;
    //console.log(y);
    wx.navigateTo({
      url: "/pages/person/person?xz=" + y +"&type=today"
    })
  },
  onTap2: function () {
    var y = this.data.x;
    //console.log(y);
    wx.navigateTo({
      url: "/pages/person/person?xz=" + y + "&type=tomorrow"
    })
  },
  onTap4: function () {
    var y = this.data.x;
    //console.log(y);
    wx.switchTab({
      url: "/pages/posts/posts?"
    })
  },
  onTap3: function () {
    var y = this.data.x;
    //console.log(y);
    wx.navigateTo({
      url: "/pages/person/time-person/time-person?xz=" + y + "&type=year"
      //url: "/pages/person/person?xz=" + y + "&type=year"
    })
  }



 

})